A compatibility layer for Web, Node-Webkit app and Chrome app