Adds some comments about how the js is working