Use production or development JavaScript code based on Rails.env