Move JSHint settings to separate .jshintrc
Remove trailing spaces
Various lint fixes to showImages
Make lint fixes to alert
Merge pull request #738 from mc10/lint

Some lint-y fixes