add definition for scan type and beep toggle to scanner js api
updated samples and api to support specifying barcode types and toggling the beep sound