javascript now successfully draws route from new db schema