add cursor pointer to progress bar in replayer
clean up var declarations and other code in replayer