Strange... in my testing, the Mendix username is case-in-sensitive. The password is case-sensitive, but not the username.
Do you have LDAP authentication, so the case-sensitivity is coming from LDAP and not Mendix?
Zip up the widget again and change the extension back to .mpk
Changing an HTML page or a widget is much safer than editing mendix.js file IMHO