minor code & jsHint-related changes