a javascript command line options parser