fixed issue with optimization and jsroutes but yields a warning about unreachable code due to ambigous reverse routes now...