Switched to using regex to determine callback function for page load

a la django et al.