Refactoring random_string.js file to include proper JSLint info.