updating to call the registerFunctions and registerPartial methods properly by passing in the engine
passing in an array to the engine.registerFunctions method
Merge pull request #147 from doowb/master

Calling registerFunctions and registerPartial functions properly