update new js embedded pattern.