Updates to js

Update to the library to trigger the execution on push of the code. Also cleaned up some comments and variable names.