added amd support, bug fix in applying multiple style values, added License MIT