Create a dynamic flipbook with jQuery