init from jsfiddle