v2, with embeded js