WIP on migration to pure JS.
Completed migration to pure JS.
Merge pull request #10 from hybridgroup/198-migrate-to-pure-js

198 migrate to pure js