Refactor media element player on success handler