add ajax scripts in a new file