Small mistake in js