removed debugging statements from javascript code