Added js to authorize.erb file