Update Wave.js

Deal better with unloaded texture