correct JS syntax