Added timeout to prevent app from hanging

http://stackoverflow.com/questions/17928504/phonegap-barcodescanner-causing-ios-app-to-hang