Updated js file.

Changed from $(document) to the $('#jqmpageid').on format.