first version of nanocube2.js: a wrapper for nanocube version 2