Add javascript for buttons

Added javascript from source: http://stackoverflow.com/questions/18326973/clicking-html-5-video-element-to-play-pause-video-breaks-play-button