trying the jsfiddle code