added javascript and css and made work generally