Refined javascript status alerts