remove unused variable "extension"

in loadScriptOrStyle.

```javascript
// this variable is not used in this function
extension    = getExtension( resource['url'] );
```