Get URL, reduce integer by 1, give me the new URL
<p>I'd like to dynamically create prev/next links in a set of files named: 1.html,2.html,3.html,etc. </p>

<p>So if the current page is example.com/2.html I'd like to dynamically create a previous page link which points to 1.html and a next link which points to 3.html. </p>

<p>The site in question uses jQuery so I'm thinking that would be the easiest way to do what I'm sure is a really simple operation. </p>

<p>Thanks in advance for your help.</p>
