simplified the fade template

the javascript changes are compatible with the old tpl