Moved JS file away from tests