Correctly handle defaults and optional params
Don't declare the options var again.
Remove console.log