Replace MessageEvent with ajax call in reader setup

Also updated gitignore
Should the code which was doing this before (from the event) be removed?