Moved some var declarations out of an if block and some stylistic cleanup
Merge branch 'master' of https://github.com/greg5green/gg-wp-portfolio