Tools added to page rather than main.js ajax

Avoiding cross-domain errors in test environments that lack a server.