fixed issue with required properties when javascript not yet defined