Added comments on how to read doOnDocumentReady. Added optional error handler functions to ajax get operations.