Adding javascript integration code