cleanup to mwsuggest.js & fix some things suggested by JSLint