Declare var `adj` before use

Fixes #1. Thanks @Jam71.