Mod 12472 - zcomix: Rewrite modal functions in books.js in plugin format.