adding generic js