php: user agent, js: viewport