I placed that piece of code inside my onJsonstoreBeforeLoad event in the store. If you look at my first post, I replaced:
Code:
        Ext.apply(store.getProxy().extraParams, {
            name: 'test'
        });
with:
Code:
store.getProxy().setExtraParam('name', 'test');