js called from html connect