Fixed some JSHint errors (function renaming, semicolons, etc.) and provided method for inputing fill attribute if one does not exist in the target SVG.