JSFiddle

similar to plnkr