```Python
>>> import urlparse
>>> urlparse.urljoin('/media/', 'js/foo.js')
'/media/js/foo.js'
```