fixed syntax errors in the jsfiddle