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