Refactoring to inline page templates into frontend.js
Added web-application