A utility helping to handle Django's URL in javascript