Updated JS syntax