found the mistake in JS, correct a code a little