utility functions to write scripts for herbstluftwm in javascript(nodejs)