Solution 4 - tested with Jasmine

A Pen by BretCameron