add js for main form