script for vanilla forms and jsconnect