Code cleaning with JSHint

Utilized JSHint (instead of JSLint) to further clean up code.