Javascript debug bit rollback