Updated JS API for the next engine update (work in process)