Revert "made js async"

This reverts commit b72e9311ece00ff3ebf0c23afb689803d5ee8006.