restructured canjs_require + code style.
Merge pull request #578 from stephenplusplus/canjs_require

restructured canjs_require + code style.