add typing api
add ajax for check typing