updated javascript for fading between pages