adds joshs version of hoist.js
fix up library to be AMD compatible
Merge pull request #5 from hoist/new-js

adds joshs version of hoist.js