- Used JSLint with Brackets and made minor changes