restore JS, get menu working
set server flags for use in UI