Fix a large number of JSLint errors

JSLint revealed a number of problems and bad practises. I don't have the environment set up and haven't run any possible tests. 
The changes are:
* change tabs to spaces, and format identation properly
* add jslint options
* change a number of '==' operators to '==='
* use strict mode
* add isIE8 variable
* remove duplicate $loader
* remove unused originalHeight variable
* change index++ to index += 1
* add missing comma to createLinkRow

I can make a separate pull request for the identation change to make it easier to see the changes (probably should've done that in the first place, oh well). It would also be a good idea to add JSLint to the build process.