updating to pass in an object to the engine.registerFunctions method instead of an array