fixed some jslint style warnings