fixed mistake in  JS loading