organize javascript code

user requireJs for load librairies
Add code mirror support