Add random to js