Given up on JSDoc, changed how the loader works a little and added async testing.