fixed JSHint warnings in main.js