JSTP Engine behaviour and API specification