skeleton code to start playing in js