added template <script> files, began index.js