Fixed up some stuff, made the code more Coffeescript-esque
Also, this.options was never defined, sooo it broke :)