Keep mode state in global variable
Add colormap option
Update infragram.js
index.html: Keep labels next to controls