Fixed some potential issues found by jshint. Replaced some URLs that were no longer working.
Removed memory leak detection code.