[ORB-9] bugfixes to field hiding js code