[jstest]: First working version of the improved JS API