add JS/Go folding rules