made js able to take in data as variable; added station mapping to draw route lines