results to separate js file