made changes to js file for fading