add offset\ dimensions.js

Signed-off-by: arcticlion <david.malan@aol.com>
merge master and dev
Merge pull request #12 from arcticlion/master

Continue to pull request