Edit mistake in JS