JS file for kraz's change to loading files on demand