Update js for iPad test