[conf] fix JS_MODE_AXIS to JS_AXIS_MODE
[state] fix local/global coordinate validity checks