[FEATURE] Allow createElement to take a hash of attributes