This answer is good, but would be even better if it incorporated the top voted comment. The change is very small, only a couple of characters, but I'd also need to update the JSFiddle link with relevant code (or switch to a SO code snippet).
This change would optimise the answer, but the popular comment would no longer make sense - what's the best practice here? Edit or leave as-is?