PhoneGap app to calculate BPM from screen taps