moved functions outside of document ready, which fixed test bugs.
Merge branch 'gh-pages' of https://github.com/keeronmarc/brewapp into gh-pages