fix to js menu handler
more updates to handle multiple sites, rear-end is defaulted to id 0 making it a special site