add script and ajax