changed loading to javascript and css