edit js for displaying log form