fixed some bugs in html5 uploader, fixed whitespace, made everything pass jshint, and added AMD wrappers for requireJS