testing JavaScripts