use pageinit event
temporarily remove library-logic.js from index.html to mitigate bug #17