Fixing jsfiddle example