Rebuild asActivity using jQuery And fix some remaining issues