correct js closure
 modify closure