Revert to not use async on js