Added ajax post and error handling. Updated README