Refactored out the CORS header. Code still needs more refactoring but this is a start.
Updated readme file