fix issue app freeze after showing scan result

by outputting result into a DIV element instead of using alert()
add button Scan

to be able to scan multiple times