added json interface so we can make a sweet web based music player in the javascript