proper loading js