Fix jsling errors in js files