Fixed errors from jslint