add js for autotest