some small hack on js