control captivate video with javascript