implement ops.js (not finished tests)