Some experiments in js