JS syntax fix