fixed broken js-type tests (two tests had syntax errors)