A Javascript excercise to implement a basic music player