urlify.js taken from Django Admin modified to be included as component.js module