base modified for real phonegap windows phone viewport