added ability to pass div target or specify height and width on generated div