fixes coffeescript bug so prop is called instead of attr, which is depricated