#924 Viewport: Unify JS with mobile.