Support for explicit 0= and 1= forms

Adds support for explicit 0= and 1= forms in javascript , PHP has the same https://gerrit.wikimedia.org/r/#/c/23943/