Separating javascript and templates into files to be downloaded via <script> tags