attempted to cleanup javascript

sources.py
The super from super().__init__(sourceId) is not recognized as a backwards compatible construct (v2.73)

preprocessing.py
str. ls (calling a method using an instance of a different class)
strip_punctuation2(s)

layout.html the compiler gets confused expecting something here:
      FILE_SUFFIX: '{{ ', ' if no_search_suffix else file_suffix }}'
                HAS_SOURCE;: {
    {
        has_source | lower
    }
    }

textcorpus.py
def __init__(self, input=None): (there is a built in method called input I suggest we rename)

matutils.py
numpy.matrix is not callable.
    return numpy.bmat([[mat, numpy.matrix(numpy.zeros((rows, padcol)))],

test_corpra.py
The parameter self is confused because it is being used both as a parameter and a global.
self.corpus_class(testfile()) is not callable because it is a trupal

dictionary.py
exception handling work -- except: too broad changed to if not then

doctools.js
unresolved variables
URL_ROOT
DOCUMENT_OPTIONS
unresolved JSON variable