make js code excutable script
update node_modules, prepare tests
fix errors
add tests