update agent common js