jekyll + html/javascript refactor