Fixed a few bugs, now have a Dom Ready function