remove all the phonegap stuff
framework sends the `mp.pageloaded` event after `.init()` is called
Revert "Keep tackk"
trigger event `mp.beforeload`
`CustomEvent` polyfill
fix CustomEvent polyfill
move to root