Add yield to js's dictionary
Add snippet for js's function