Phonegap Code for the myPrintston Application