inlining js libraries into template