Update Scan.js

Ensure BPM is valid