I don't see why you would want to remove the argument names from the function declaration. 

I would remove this branch, add back the named arguments, remove the var declarations and add an `options = {}` to the beginning of the body of the if 

Otherwise, this looks good to merge.