JS corrections