Simple require('range').

Small change that allows you to do:

``` js
var range = require('range');
```

It still allows the original:

``` js
var range = require('range').range;
```

I've also added tests as well that use your existing test function.