Imported code for player

Imported code for player
Use `var`, don't make this a global variable. And using 'dataArray' as a variable name doesn't give a great clue as to what this is. Maybe something like 'commentsInInterval'?