Moved TOW out to tow.js where it should be for reuse