Add `cancel` and `panChild` options; fix a bunch of jsHint errors