refactored pre-definted functions to seperate methods
Merge branch 'master' of https://github.com/stevekrouse/hs.js