contacts js generation