js for forms and manager stuff