test(dart2js): Added preamble to dart2js test (required by dart 1.6+)

I'm surprised we made v2 without testing it on JS at all and with Travis broken the whole time. Better late than never!