Moved viewport.js into app directory