Small refactor to share.js.
Small refactor to share.js.

ari-gold/kalabox,rabellamy/kalabox,RobLoach/kalabox,kalabox/kalabox-cli,RobLoach/kalabox,ManatiCR/kalabox,kalabox/kalabox-cli,ari-gold/kalabox,rabellamy/kalabox,ManatiCR/kalabox,oneorangecat/kalabox,oneorangecat/kalabox