I've never understood the controversy over faith vs. works as the Scripture seems quite clear about the matter a strictly logical sense.
Faith produces works.
Faith without works is dead i.e. not true faith.
Works done without faith i.e. not to the glory of God, will reveal themselves and be accounted as such by God.
However good works done to the glory of God are the RESULT and PRODUCT of faith & co-operation with the Divine will.
Thus it's true to say that faith is the cornerstone of salvation and that without faith we won't be saved, that good works done in an attempt to 'bargain with God' will be to no avail.
Yet faith cannot be limited to, say, a profession of intellectual belief, or some kind of emotional state, that is empty of works.