add required javascript