converted karma tests to ls
with passing tests this time
js file purge; embedded comments in ResourceSchema