edit js to display correct form