Run JavaScript tests correctly