Convert pathname of application.js to string