got javascript routing working. started making general plotting method
merge