updates map id and js