Move Script#runInNewContext to JS.
Move filename defaulting to JS.