sourceURL? You can even do it with functions in the console:
function hello() {
console.log("hello world");
//# sourceURL=hello.js
}
This will then appears in the sources panel under the name "hello.js". Which is great for debugging little scripts you're putting together in the console as you can set breakpoints, watches etc