Adding jslint options and making the script pass.