Even more fixes to make JSLint extremely happy, #30

- added some flags to disable not needed warnings
- some more fixes for JSLint complaints