Fix all the javascript
New digest added and commands improved