javascript consolidation and css fixes

fixed svg display in IE and consolidated javascript