javascript for complaints