javascript form class.