Added getOffsets function, used it to move iframe inner div