correct syntax for js fix