Add button to index sample docs to examples

Update angular and jquery examples with a button to index some sample
documents.