Basic javascript to view sound data in the frequency domain