modularized most of file with require.js
emptied stub into main
except debug and text_handling
found some new issues with the algorithm
improvement : not appending source to body - faster
appending dest to body only after finishing constructing it - faster