SOAP-1416 Improved feature file and template JavaScripts to be used when testing