Started work on nodejs version of script