update base library (JS)

update source comments
fix array_max function (return)
fix tostr function (output format)
update base unit test (JS)