Make code codepen.io-friendly and fix 'running' toggle