Solution 2 - tested with Jasmine

A Pen by BretCameron