add common js callback to system api