copy editor.js from https://github.com/peroon/voxel_editor