Update index.js

add 'move' method for changing child's parent