Extend the options object to prevent it from being changed outside of th...

Extend the options object to prevent it from being changed outside of the scope of the function