Added to check if online before ajax call, updated readme
Merge pull request #4 from rjacksn/isOnline

Added to check if online before ajax call, updated readme