Fixed hash syntax for ruby 1.8

Changed params hash syntax from new(1.9) to old, ruby 1.8 compatible