Fixed double acolad in javascript codes