fix PHP Warning with $JS