Changed code to make it work with table structure in mapper.html. Added the tooltip functionality.