validate js fix