updating to pass in an object to the engine.registerFunctions method instead of an array
Merge pull request #148 from doowb/master

Updating to call registerFunctions properly