Resolve undefined constants
Bump maxVersion to 31.* (but not confirmed yet)
Fix syntax error
Don't define "Promise" as a constant, because lt has been declared by Gecko itself on Thunderbird 31