fix test: should preserve async attribute (JS)