I agree, it would be nice to have reusable JS well tested. @alexwllms - do you have any plans to decouple and test it?