ported js to soundjs
ported js to soundjs