Trigger Javascript actions at certain viewing milestone with progress events