improve API reference
remove UMD build and add AMD build
fix error message
update .jshintrc
update devDependencies