updated specs and added ajax examples.