Separate the display js and the ajax int two differents files.