JS "mix in" to add string based route traversal to a JS object