Using reuire.toUrl as in this issue https://github.com/millermedeiros/requirejs-plugins/issues/18