added build target and minified js
removed unused code and factored out e.charCode