removed the async attribute. interesting piece of code but not quite what is required.