fix JS syntax