Converted from jsfiddle to git