correction in the js