javascript tricks utility, under progress