fixes javascript jslint errors