fixed jslint issues for travis build