misc js callback changes.