Data dub fix, jquery function witch returned document width, height rewritten in js