improvements to code

experimenting with es6,
fixed strange song loading bug