JavaScript Oscilloscope