Moved request js code to the application.js

Temporary. I don’t know why but it won’t load in any other place.