switched example from jsfiddle to codepen