js implementation of see-threepio