I fixed all of the dodgy stuff in this plugin myself a while back, I'd upload it to github but I have no idea how to do that

Uploaded it...