set up basic functions in js, redirected path to git repo in template