a multi–layered javascript experiment