Thanks for the Feedback on the version numbers guys, I knew it wouldn't work on older versions though honestly I am surprised there is an error even on 4.1.12. I will see if I can get access to a 4.1.12 board again, I ended up updating both my test sites to 4.2.0.
Yes I plan to make this into a widget as well, although it is re-usable code so if anyone wants to "beat me to it" they are encouraged to try.