A javascript experiment