Fix missing ref
Remove unused variable
Fix some JSHint warnings
Remove more JSHint warnings
Fix remaining JSHint warnings
Add .jshintrc