Updates to support Rails 3.x with asset pipeline

I made these updated back in 2012 to get it working with Rails 3.1 and the asset pipeline.  Thought you might be interested.