Added fading to the js file