Use Hash#key? instead of Hash#has_key?

See <http://batsov.com/articles/2013/08/21/the-elements-of-style-in-ruby-number-9-hash-number-has-key-and-hash-number-has-value-are-deprecated/> for the rational.
Do not initialize on asset precompilation.