Fixed how scripts and styles are loaded