Init from http://jsfiddle.net/gwenaelhagenmuller/pk63z0x1/