Minor fix for currentFrameID when in IE