minor changes to test in firefox. Should investigate into why the Router contructor had to be changed in order for it to work in Firefox.