Kohana 3 version of https://github.com/jgallred/requirejs