find solution . might be need reimplement the android.selection.js file to make it as functions