make modal restore original padding-right on <body> when it's done

Fixing a problem:

If the page has a padding-right: 100px; initially for example, after opening and closing a modal dialog, this value will be wiped.
Indentation seems to has been changed a little by the github online editor :(