Or:
// in setup, use everywhere you use Math.random
r=Math.random
// generating a new tile
newtile=(r()*2+1)<<1
That's a 50/50 chance and it's still a few more characters, obviously, but not nearly that many. Not spawning fours makes this a lot easier.