allow call to to-js without ctx