adds js to hide/show form