Added preliminary measure library JS wrapping; tweaked routes