title: javascript/jquery add trailing slash to url (if not present)
body: <p>I'm making a small web app in which a user enters a server URL from which it pulls a load of data with an AJAX request.</p>
  
  <p>Since the user has to enter the URL manually, people generally forget the trailing slash, even though it's required (as some data is appended to the url entered). I need a way to check if the slash is present, and if not, add it.</p>
  
  <p>This seems like a problem that jQuery would have a one-liner for, does anyone know how to do this or should I write a JS function for it?</p>