add async attribute to js calls