CORS compatibility IE8&9

- CORS compatibility IE8&9
- tabs to spaces indentation