functions for testing multiple js files