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

Who can review and comfirm this translation?