Stripped down for phonegap