moved css and js further up in the file