fixed JS loader