done the javascript for test