Hubble's cost structure is complicated. It is essentially a modified spy satellite and so much of its development costs were shrouded. We don't know how much was saved, or how much of Hubble's public budget was used on other projects. JWST is different. It is a unique object with no equivalent. Its cost structure is therefore not comparable to Hubble.
(Or I am wrong. Maybe JWST is a modified version of a super-secret unannounced program and its budget is covering the development costs of that spying program. Given the testing scheduled I doubt this, but it remains a possibility.)