changed audio element to media element as the difference between audio and video is negligible
refactoring....