Prototype for disabling Media Playback via Cookies in Javascript