Made template Javascript classes and tests consistent.