adding search-terms, standardizing, decoupled debug javascript functionality.