Added js-yalm and a ts definition
typo fix
Added more tests and fixes