updated javascript and tweaked main.css