Basic JSHint setup and fixes

Also nobody ever died from too much white space.
Remove IDE specific file from repository
Typos
Add AMD support
Merge pull request #6 from fhemberger/umd

Add AMD support