Added CORS support
An inconsequential update

Added summary comments and changed parse function to return JSON instead
of echoing it.