A javascript snippet that makes web apps feel more native.