splitting out text wrapping
moving calculate-text into clj
moving calculateSize to clj
moving string spliting to clj