readied example for dev
separated ratio and position setting
added window resize handler, fixes #1
Merge branch 'master' into gh-pages