Remove unneeded local variable
Use jQuery.contains to check if view.el is in DOM

Instead of Node.contains. Fixes compatibility with Firefox < 9.
Build