included generateRandomIndex function as THEFREEDICTIONARY global object's method; code cleaning