Question: What is the right regex to

create this url: domain.nl/projecten/scheidingswanden from

```
http://www.domain.nl/?module=projectencat&action=scheidingswanden

```

**in other words: replace the variable names ?module= and &action= with slashes**

**but also the other way around
because the frontcontroller needs to read the get variables module and action**

I don't know if it's only htaccess, but this logic is missing

thanks, Richard

Answer: 
Put the variable outside the function and than get the value 

```
var getWidth ;
var getHeight ;

$(function(){

    var slideBox = {

        gb: $('#box'),

        init: function() {

                sb = this,
                getBox = sb.gb,
                getWidth = getBox.width(),
                getHeight = getBox.height();
            getBox.animate({ marginLeft: '+='+getWidth }, 600 );

            $("#button").on("click", this.clickSlide);
        },

        clickSlide: function() {

            getBox.animate({ marginLeft: '+='+getWidth }, 600 );
        }
    };

    slideBox.init(); 
});

```

than make use in the function so that you can get the vlue in you clickside function
If you are gonna use them a lot, I would made them a property of the object.