Fixed the defprogramming script

the [defprogramming](http://defprogramming.com/) website changed it's design so the script wasn't working. 
Also, making the request to `http://defprogramming.com/random` (without the trailing slash) returned a 301
```
HTTP/1.1 301 Moved Permanently
Server: Apache/2.2.17 (Ubuntu)
Content-Type: text/html; charset=utf-8
Location: http://defprogramming.com/random/
Vary: Accept-Encoding
X-Cacheable: YES
Content-Length: 0
Date: Fri, 01 Aug 2014 01:17:19 GMT
X-Varnish: 1295976573
Age: 0
Via: 1.1 varnish
Connection: close
X-Cache: MISS
```