untested data js code