waveLength could now be modified via javascript