working comment submission with javascript