HTML5 Audio refactoring to have same behaviour as HTML5 videos.