fade in functionality working, javascript increasingly modularized