moved the video element flash object read and added some debugging