PHP Helper Library for managing form HTML and associated JS