fixed javascript and added css