Fix parameter regex formula

Issue #242
The function getURLParam had an error on the regular expression used to
get paramaters from the URL. In the case where the paramater was empty
it included the rest of the string when it should be empty.