better handling of loader / spinner for GIF albums and potential firefox gif freeze fix (really a FF bug, not RES, but hopefully this helps)
refactor togglebutton, uses of .html(), and createElementWithID (added ability to pass in more data including textContent)