Update pageflip.js: add the dispose function