use global js object instead of hidden form