updates JS for testing