Add javascript to handle update checking/management.