JS file: display if ajax else append to body tag.