Refactor order.rb and try content-tag for javascript