Arranging javascript and css