update js for testing