Fixed bug where $.isPlainObject or $.isEmptyObject would not detect it for some reason so doing a manual comparison
Fixing bugs and removing debugging commands