Abstracting javascript into tone.js
Removing global