Replace 'on page init' with document ready calls

The on page init was used by jquerymobile and can be replaced by usual on
document ready