Missing file extension when registering js file