removed unused functions in js-api