Updated js interface to accept no callbacks