some jslint tips applied