Corrects misspellings in the Portuguese version, removes trailing whitespaces, changes Javascript by JavaScript

ping @vdv73rus