removes HTML/styles from JS

legacy code was creating list elements with inline styles. current iteration now alters elements on page that have been already styled.
adds styles/id structure to map legend

- creates span for legend ranges that is altered by JS
- removes unused placeholder text
- changes colors to conform with values formerly in JS file
- alters indentation for readability.
adds unique IDs to each map legend item
styles for legend boxes declared in css file

legend boxes are now given colors in css.
removes in-line styles for legend boxes

styles now located in custom.css
turns legend-title into id, not class

since legend title is only used once, makes sense that we used CSS Id to mark it.
legend title call now alters text, not html, to conform with rest of code.
legend box styles now associated only with wax-legend

in order to avoid future namespace errors, legend boxes are styled locally to wax-legend. also conforms to rest of stylesheet convention.
creates unused rangeCreator function
makes one line if statements and cleans up white space
map label values are now numbers, not strings

in order to create dynamic ranges, labels object now stores numbers instead of strings, preventing unnecessary data type conversions.
createMapKey now creates ranges dynamically using rangeCreator

- rangeCreator knows how to deal with single number inputs
- rangeCreator knows how to deal with single value ranges
- fixes spacing issues in rangeCreator
removes whitespace in labeler function
era naming moved to new function

in order to divide responsibility, labeler no longer is used as a lookup tool for era names. a new eraName function does that instead.
era naming now dealt with in eraName function
removed query variable from cartoDBLayer object creation

query is dynamically created by cartoDBLayer constructor based on table_name. from the source code:
'''
this.options={query:"SELECT * FROM {{table_name}}"
'''
remove auto_bound and debug declarations in object creation

both variables are set to false by default. from the CartoDBLayer function code:

auto_bound:false,debug:false
removes mapLayer variable declaration at top of file

in order to preserve the integrity of the existence conditional at line 30, a typeof operator is used.
fixes spelling error
removes unused layer variable