scaling osc values correctly in js