Authenticating with a password with git over http works again. More information here.
The order matter when calling the javascript library. Start with the script defining constants.