Update jquery.pageflip.js: use the factory function