simple set of javascript functions for creating expandable forms