- clean up of wave.js