fix caps of JS