Move JavaScript code to `./ecma`.
A create list function without a dummy node.