Adding fading alert and some javascript