A 2D ASCII version of the portal game

Do you know portal? It a fps like game, and you have a special gun, this gun allows to generate portal between two différents points. Then by entering in a portal you are directly transferred on the other portal.
You can watch videos on youtube showing the portal game.

When reading the famous sebsauvage’s blog I have discovered a 2D version of portal, this game is like a standard platform game, but you can make portals. This game is entirely made using ASCII characters in a console! You can look a video of the game here. The author also explain how the views are generated in video. Another on levels.

It can be interesting to make a html5 + javascript version of this game!