Error found thanks to jslint