Implementing content protection in HTML5