added ac js function
fixed conflict??