Adding javascript for dynamic defcon calculation