added ajax call, not functioning using 'open index.html' in chrome