I knew nothing about javascript back then. most of the ajax is copy paste from google results. Fix that by using either Baldrick, of simply cleaning it up.