Has replaced innerHTML with something safer (except where it sets it to nothing) and replaced eval with a normal function (don't know why I did that :/).