removed cordova define and attachment to the window object, as plugman does this for us
updated name and clobbers to applicationPreferences, which is the var used in simons examples