fixed issue with Mountain Lion

this.options was not defined, changed to options