In order to beat 2048 simply open your web browser's console while playing the game and type in:
Math.random = function() { return 0.0 }
In firefox it is Tools -> Web developer -> Web console
In Chromium it is Tools -> Javascript console.
P.S. I had to check if it's not yet April 1st as rebuilding kernel in order to cheat a web game sounds a bit too extreme