[caveman] add a bunch of use strict and fix what it revealed