Revert "cleaned useless code, made a little differences on route drawing page and used .js for the javascript code"

This reverts commit a488603c349f46dd37e55258ede9f9329007d272.
just a deeper cleaning