Add missing "var" and load file asynchronously

@Rich-Harris please merge if it's OK.