How to get document id's in BaasBox[0.9.2] using java script

I'm new to BaasBox. Can i have answer for how to get all the document ID's in a collection of BaasBox using javascript.? Thanks in advance.