Plenty of changes made. Factorised share.js + improved README.