update tests and description
fix js
initial code fix