Adding js file to calc and print totals