Implemented ons.ready() and pageinit event.