add in a single page app api (bug 957677)
Merge pull request #398 from andymckay/957677

add in a single page app api (bug 957677)