Add location of error to browser console output by showing related elements

This adds the ability to track down the source of problem by outputting all of the problem releated elements. The elements can then be clicked in the console to track down the exact location of error by using the element inspector. Fixes #29.

Tested in Firebug and Chrome. Chrome looks a little bit strange, but works by right clicking the element and clicking on "Reveal in Elements panel".