noteloading is now async with mutex protection

noteloader.js