refactored JS embedding in OVVCheck