add determining\ element\ dimensions.js

Signed-off-by: arcticlion <david.malan@aol.com>
refine determining\ element\ dimensions.js

Signed-off-by: arcticlion <david.malan@aol.com>