Mesoptier/node-trakt — pull request #5 by CrypticSwarm (2014-08-13 17:48:47+00:00)
Title: fix request being undefined

function expressions don't get hoisted.
The code was relying on the request function already being defined.
Switched to function declaration instead of reordering code.