(minor) Code finally passes JSHint