added w2 js file and an example function of esoteric behavior