Adds debug global to JS globals. Gets rid of a debug statement.