Scope JS to commitments index page
Try using Rack::SslEnforcer