Fix - Generating lots of "Object 4 has no method 'setAttribute'" errors

This is my first pull request, so I'm not sure if I did everything correctly. 

Calls makeArray on results of find('.ngHearderSortColumn') so the call to forEach will not throw.