revamped css and js, added javascript