added js to make the flash fade out