update jsfiddle demo code