Fix #698 - Make sure we only listen to 'local' ajax requests