Update viewer.js

First version for the legend. I added the gender symbols just to see how they would look like