fixed JS not to append many tables under result div