Re-working setStyle. Removed createStyleObject since getInlineStyle does the same thing already.