update test
factor url fixup code
fix typo in line 214 which was throwing on FF
factor path code a bit.
enhance IE and Safari compatibility.
Merge branch 'master' into dynamic