Finally fixed barcode reading on iOS. Combination of alert(); being too slow, and variable scope.

Signed-off-by: Alex Roth <science9711@gmail.com>