redo complete with templating
updated repo with templating instead of jquery