add swift for js post