Add support for source URLs, fix require bug