A basic JS structure for a web player