Define kratsbox as nop if unsupported.

Also, try shortening the javascript by function argument aliasing.
More shortening.
Shorter code is better.
Webkit compatibility.