waves.js now dependent on user, not local variable