Calculate width from viewport if all else fails

Needed when transitioning between jQuery Mobile pages