added easy hook for custom JS success function
updated docs to includ info on usage