making it chrome app compliant, with precompiled template & such