Fixed dictionary size in js