Added support for numbers as content, added support for array indexing issue in IE8, refactored contentConfig

* Numbers are now supported as content
* IE8 adds an extra index to array when content is an array - support added to remove this index so it will not be displayed as undefined.
* Refactored contentConfig to support the above and streamlined writeToDOM by moving content handling functions to contentConfig in order to keep things compartmentalized.