Syntax correction thanks to jslint