Fixed jslinting issues