Update react_ujs.js

I noticed that the react components aren't mounted again if you use the back button. I think this should fix it.