basic js function with a fade effect