push the horrible javascript line into a separate js.