javascript scretches for dictionary