Fixed issue of JS improperly loading