Update sinewave.js