AMD version

[Fixes #29]
Update jshint and add support for ES6 features