updated slim-router.js with AMD wrapper

compatible with require, AMD, Node.js, and browser