fixed issue in Mountain Lion

this.options was not defined, changed to options