Thanks to  JSFiddle, I got it to work