JSlint errors.

Some errors due to 'for (var i' were displayed by jsLint.
Merge branch 'hotfix-jslint-for-var-loop' of https://github.com/najor/Aloha-Editor into release
Fix multiple jslint issues