Two fixes

* loop_on_exit -> loop_at_exit
* weak.js