Variable argument parsing for Javascript functions.