fixed jslint validation issuess