added javascript to allow for a playlist to run automatically