Fix "compile" error in JS