Correcting syntaxt problem reported by jslint