Javascript version of Zor.