cleaned up javascript files so that showproject event wasn't fired multiple times and other terrible shit was fixed.