add offset\ dimensions.js

Signed-off-by: arcticlion <david.malan@aol.com>
merge master and dev