JSFiddle

Making the tests being the same as the JSFiddle of the solution.