Replace MessageEvent with ajax call in reader setup

Also updated gitignore
Yes it should, my mistake.