Messing around with nodejs/Javascript as a shell scripting language