Update advancedJavascript.js

Eliminate special characters and numbers from the allowedCapsPercent calculation by testing if the character changes depending on uppercase/lowercase.