Removed debugging from javascript