fixed mistake in routes for javascript.