JavaScript extension that allows for deep object verification