The Javascript stuff for SitRep