You are correct. For the 2 JS functions, it is not done using ajax mocking. For other, yes. I'll look with node.js to process a kind of template that just convert the file in plain JS string for the mocking.