Fixed error introduced by change in jQM 1.3.0

Fixed an error caused by jQM changing the data attribute name for page
data.  Changed to make use of 'self' more consistent.  (There are also
a few whitespace changes caused by my editor trimming trailing white
space.)
Merge pull request #21 from ronlussier/master

Fixed error caused by change in jQM 1.3.0