Expose yuiHook function for library use, add tests
Up version