add js functions to fade content and home page