removed more debugging statements from javascript code