added sway parameter to draw tree function, set different sway degrees in ajax call success, and fixed bug where branch rotation wasnt iterating through entire randomNum array