refactoring for jekyll and adding google analytics