BUG: fix invalid HTML4 ids
BUG: make javascript ID generation HTML4 compatible
Merge pull request #144 from jakevdp/id-bug

BUG: make ID generation HTML4 compatible