Integrate static assets and move hmtl code to template