Move JavaScript version and coverage variable name into configuration
Add switch test infrastructure