Edit in JSFiddle
JavaScript
Result