Problem on state.js using wrong regex global param (system fails)