Update javascript and css to fix display issues