adding direction property to region
adding direction property to JS forms