Migrating shell scripts to node scripts

There's a brief README in the etc/js/ folder.