Simple Ajax Connection Class: allows JavaScript to run specially registered functions in PHP