Merge pull request #1 from rook2pawn/master

adjusted post call to ajax with content type json and stringified json
attempt 2
some more updates