update demo at jsfiddle and docs