An angular js directive for copying over the model into the url