Replace javascript downcase with toLowerCase

And yes, there's javascript in pages_helper.rb :(