only send the javascript once