Javascript XD library