Update Wave.js

Fixing how unloaded texture is dealt with